// 表单下的验证
export default {
  // 添加发布包的校验-android
  addPubsishPack: {
    ClientVersionId: [
      { required: true, message: '请输入版本号', trigger: 'blur' }
    ],
    ClientVersionName: [
      { required: true, message: '请输入版本名称', trigger: 'blur' }
    ],
    fileListForA: [
      { type: 'array', required: true, message: '请选择文件', trigger: 'change' }
    ],
    fileListForI: [
      { type: 'array', required: true, message: '请选择文件', trigger: 'change' }
    ]
  },
  // 版本设置-发布
  grayUserGroupRules: {
    whiteItemId: [
      { required: true, message: '请选择', trigger: 'change' }
    ]
  },
  // 白名单增加/编辑校验
  whiteList: {
    groupName: [
      { required: true, message: '请输入名称', trigger: 'blur' }
    ]
  },
  // 工作区管理的新增
  workRulesAdd: {
    Id: [
      { required: true, message: '工作区ID不能为空', trigger: 'blur' },
      { pattern: /^[a-zA-Z0-9.]*$/, message: '工作区ID只能由字母、数字和.组成', trigger: 'blur' }
    ],
    Name: [
      { required: true, message: '工作区名称不能为空', trigger: 'blur' }
    ]
  },
  // 工作区管理的灰度设置
  workRulesSetting: {
    groupId: [
      { required: true, message: '请选择', trigger: 'change' }
    ]
  },
  // 工作区灰度设置的新增
  workSPAddRules: {
    workspaceId: [
      { required: true, message: '请选择工作区', trigger: 'blur' }
    ],
    groupId: [
      { required: true, message: '请输选择灰度用户组选择', trigger: 'blur' }
    ]
  }
}
